package logo.lang;

import java.util.ArrayList;

/**
 * This is a concrete class to represent the command IF.  An IF
 * statement has three sub expressions: the predicate, the consequent
 * and the alternative.  So, we inherit from an ASTNode3 class.  This
 * class provides an example of how you would implement all of your
 * intermediate classes.
 */
public class IRCmdCall extends IRCmd {
	
	
	IRExpVar proc;
	ArrayList lst;

    public IRCmdCall(String proc, ArrayList lst) {
		this.proc = new IRExpVar(proc);
		this.lst = lst;
    }
	
    public IRExpVar getProc() {
		return proc;
	}

	public ArrayList getLst() {
		return lst;
	}

	public Object visit(Visitor v, Object info) throws Exception {
	return v.visitCall(this, info);
    }
}
